import axios from 'axios' 
const service = axios.creat({
  baseUrl:api,
  timeout:5000
})
service.interceptors.request.use(
  config=>{
    config.headers.token = token
    return config
  },
  error=>{
    return Promise.reject(error)
  }
)
service.interceptors.response.use(
  response=>{
    let res = response.data
    if(res.code === 200){}
  }
)